enable_testing()

add_executable(
  parser_test
  parser_test.cc

  ../../lexer.cc 
  ../../type.cc 
  ../../diag_engine.cc
  ../../parser.cc 
  ../../print_visitor.cc
  ../../sema.cc 
  ../../scope.cc
  ../../eval_constant.cc
)

llvm_map_components_to_libnames(llvm_all Support Core)

#message(STATUS "iiicp: ${llvm_all}")

target_link_libraries(
  parser_test
  GTest::gtest_main
  ${llvm_all}
)

include(GoogleTest)
gtest_discover_tests(parser_test)